# -*- coding: utf-8 -*-
from sqlalchemy import Column, Integer, String, DateTime, func
import datetime

from utils.work_db import Base

"""
用户积分
"""


class UserPoint(Base):
    __tablename__ = 'user_point'
    points_id = Column(Integer, primary_key=True, autoincrement=True)
    user_id = Column(Integer)
    openid = Column(String)
    points_code = Column(String)
    points_name = Column(String)
    points = Column(Integer)
    points_remark = Column(String)
    status = Column(Integer, default=1)
    create_time = Column(DateTime, default=func.now())
    update_time = Column(DateTime, default=func.now())
